package org.coody.gitee.entity;

import java.util.HashMap;
import java.util.Map;

public class GiteeEntity {

	private String account;
	
	private String email;
	
	private String password;
	
	private String emailCode;
	
	private String imgCode;
	
	private String space;
	
	private String cookie;
	
	private String csrfToken;

	
	private String[] projects;
	
	
	
	
	
	
	
	public String[] getProjects() {
		return projects;
	}

	public void setProjects(String[] projects) {
		this.projects = projects;
	}

	public String getEmailCode() {
		return emailCode;
	}

	public void setEmailCode(String emailCode) {
		this.emailCode = emailCode;
	}

	public String getImgCode() {
		return imgCode;
	}

	public void setImgCode(String imgCode) {
		this.imgCode = imgCode;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSpace() {
		return space;
	}

	public void setSpace(String space) {
		this.space = space;
	}

	public String getCookie() {
		return cookie;
	}

	public void setCookie(String cookie) {
		this.cookie = cookie;
	}

	public String getCsrfToken() {
		return csrfToken;
	}

	public void setCsrfToken(String csrfToken) {
		this.csrfToken = csrfToken;
	}
	
	
	public Map<String, String> buildHeader(){
		Map<String, String> head = new HashMap<String, String>();
		head.put("X-CSRF-Token", csrfToken);
		head.put("X-Requested-With", "XMLHttpRequest");
		head.put("Accept-Language", "zh-CN,zh;q=0.8");
		head.put("Accept", "*/*");
		head.put("Referer", "https://gitee.com/signup");
		head.put("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
		head.put("Connection", "keep-alive");
		return head;
	}
	
}
